package com.ydgk.service;

import com.ydgk.bean.Address;
import com.ydgk.bean.Order;
import com.ydgk.bean.Pre_order;
import com.ydgk.vo.OrderInfo;
import com.ydgk.vo.TrolleyInfo;

import java.util.List;
import java.util.Map;

public interface OrderService {
    void insertPre_order(Pre_order pre_order);

    int getPreCount(Integer uid);

    List<Pre_order> getPre(Integer uid);

    void deletePre_order(Integer poid);

    void updatePre_order(Pre_order pre_order);

    Pre_order findPreById(Integer poid);

    void insertOrder(Integer[] poids, Order order, String eWay);

    int findAllOrderCount(Map<String, Object> factorMap);

    List<Order> findAllOrder(Map<String, Object> factorMap);

    OrderInfo getOrderInfo(Order order);

    Order findOrderById(Integer oid);

    void updateOrder(Order order);

    int findOrderCountByOtype(Integer otype,Integer oid);
}
